package com.jiangwz.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author jiangwz
 * @create 2019/1/25.
 */
@Component
public class ConfigProperties {

    @Value("${redis.name}")
    private String name;
    @Value("${redis.port}")
    private int port;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
